<!DOCTYPE html>
<html lang="en">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="./node_modules/_vue@2.5.22@vue/dist/vue.js"></script>
    <style>
        .v-enter,
        .v-leave-to {
            transform: translateX(150px);
            opacity: 0;
        }
        .v-enter-active,
        .v-leave-active{
            transition: all 0.8s ease;
        }
        .ads-enter,
        .ads-leave-to {
            transform: translateY(160px);
            opacity: 0;
        }
        .ads-enter-active,
        .ads-leave-active{
            transition: all 0.8s ease;
        }
    </style>
</head>

<body>
    <div id="app">
        <input type="button" value="欸嘿嘿" @click="flag=!flag">
        <transition>
            <h3 v-show="flag">雷憨憨</h3>
        </transition>
        <transition name='ads'>
            <h3 v-show="flag">么么啾</h3>
        </transition>

    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                flag: false
            },
            methods: {

            },
        })
    </script>
</body>

</html>